package io;

import java.io.PrintWriter;
import java.io.Writer;

public class BaseHouseWriter implements HouseWriter{

    private PrintWriter pw;
    
    public BaseHouseWriter(Writer writer){
        this.pw=new PrintWriter(writer);
    }

    public void add(char cell){
        pw.print(cell);
    }

    public void nextRow(){
        pw.println();
    }

    public void close(){
        pw.close();
    }
}
